package com.sky.mapper;


import com.sky.anno.AutoFill;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.vo.DishItemVO;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface DishMapper {
    Integer countCategory(Long id);

    Integer getStatus(Integer id);

    void deleteBatch(Integer[] ids);

    List<DishVO> selectAll(DishPageQueryDTO dto);

    @AutoFill(OperationType.INSERT)
    void add(Dish dish);

    DishVO selectById(Long id);
    @AutoFill(OperationType.UPDATE)
    void update(Dish dish);


    List<Dish> getByCategoryId(Long categoryId);

    List<DishItemVO> getListBySetmealId(Long id);


}
